# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=mpvpaper
pkgver=1.4
pkgrel=0
pkgdesc="Video wallpaper setter for wlroots based compositors using mpv"
url="https://github.com/GhostNaN/mpvpaper"
arch="all"
license="GPL-3.0-or-later"
options="!check" # no test suite
makedepends="
	meson
	ninja
	mpv-dev
	wayland-dev
	wayland-protocols
	mesa-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/GhostNaN/mpvpaper/archive/refs/tags/$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 mpvpaper.man "$pkgdir"/usr/share/man/man1/mpvpaper.1
}

sha512sums="
23a5859705319bea6508a09df3ea791b976326dcaa8a7df86e0b38754017a1bcb0c594b967db91abe2d631fe9f07454399f57f447fd14192c6f9ede4d479f1d2  mpvpaper-1.4.tar.gz
"
